package servlet.admin;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import servlet.ServletTemplate;

public class Admin extends ServletTemplate{
    /**
     * 执行POST操作 
     */
    public void doPost(HttpServletRequest request,
                         HttpServletResponse response) throws IOException, ServletException{
        super.doPost(request, response);
        
        if(false == this.isLogin()) {
            this.setRequestAttr("errorInfo", "非法登陆！");
            this.forward("hint.jsp");
            return ;
        }
        
        this.forward("/admin/index.jsp");
    }
}
